package com.jml.springboot自定义starter009.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;

//读取配置文件jml开头的配置
@ConfigurationProperties(prefix = "jml")
public class TokenProperties {
    
    private String tokenRedisHost;
    
    private String tokenRedisPwd;
    /*
    在配置文件中配,碰到大写就-分开然后大写变为小写，定义配置文件的key的时候没有大写 都是为小写
     jml.token-redis-host=
     jml.token-redis-pwd=
     */
    public void setTokenRedisHost(String tokenRedisHost) {
        this.tokenRedisHost = tokenRedisHost;
    }

    public void setTokenRedisPwd(String tokenRedisPwd) {
        this.tokenRedisPwd = tokenRedisPwd;
    }

    public String getTokenRedisHost() {
        return tokenRedisHost;
    }

    public String getTokenRedisPwd() {
        return tokenRedisPwd;
    }
}
